ShortPixel\Model\Image\CustomImageModel C

Total Complexity 101
Dependencies 5
Dependents 1
Total lines 674
Lines of code 435
Logical lines of code 242
Comment lines 76
Methods 30
Properties 9

Methods 30

Method Rating Maintainability Complexity Lines of code
saveMeta()
B
35 14 90
loadMeta()
A
41 15 49
getOptimizeData()
A
47 10 34
isProcessable()
A
54 8 22
getOptimizeFileType()
S
56 7 18
restore()
S
49 5 33
handleOptimized()
S
54 5 22
count()
S
58 5 18
isRestorable()
S
60 4 15
setStub()
S
54 3 22
isOptimizePrevented()
S
64 3 10
__construct()
S
61 2 14
getImprovements()
S
63 2 11
resetPrevent()
S
67 2 8
isSomethingOptimized()
S
81 1 3
getImprovement()
S
80 1 3
dropFromQueue()
S
67 1 8
onDelete()
S
74 1 5
deleteMeta()
S
67 1 7
getOptimizeUrls()
S
75 1 4
getAvifs()
S
76 1 4
getWebps()
S
76 1 4
markCompleted()
S
79 1 3
preventNextTry()
S
73 1 5
doSetting()
S
80 1 3
getParent()
S
82 1 3
getURL()
S
79 1 3
setFolderId()
S
81 1 3
getAllUrls()
S
81 1 3
getExcludePatterns()
S
68 1 8